import request from '@/utils/request'

export function getBulletinList(query) {
  return request({
    url: '/knowledge/bulletin/getList',
    method: 'post',
    data: query
  })
}

export function getBulletinDetail(id) {
  return request({
    url: '/knowledge/bulletin/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByBulletinID(id) {
  return request({
    url: '/knowledge/bulletin/change-status',
    method: 'post',
    data: id
  })
}

export function saveBulletin(formdata) {
  return request({
    url: '/knowledge/bulletin/save',
    method: 'post',
    data: formdata
  })
}

export function deleteBulletinByID(id) {
  return request({
    url: '/knowledge/bulletin/delete',
    method: 'post',
    data: id
  })
}
export function removeBulletinByID(id) {
  return request({
    url: '/knowledge/bulletin/remove',
    method: 'post',
    data: id
  })
}

export function fetchBulletinAvabile() {
  return request({
    url: '/knowledge/bulletin/getAvailable',
    method: 'post'
  })
}
